def handle_text(text:str):
    if '万+' in text:
        return float(text[1:-3])*10000
    elif '+' in text:
        return int(text[1:-2])
    return int(text[1:-1])


if __name__ == '__main__':
    a='(2000+)'
    print(handle_text(a))
